package org.springblade.mach.excel;

import lombok.RequiredArgsConstructor;
import org.springblade.core.excel.support.ExcelImporter;
import org.springblade.mach.service.IStandardPartsService;

import java.util.List;

/**
 * @author LY
 * @version 1.0
 * @date 2021/1/13 9:42
 */
@RequiredArgsConstructor
public class StandardPartsImporter implements ExcelImporter<StandardPartsExcel> {
    private final IStandardPartsService standardPartsService;
    private final  Boolean isCovered;
	@Override
	public void save(List<StandardPartsExcel> data) {
		standardPartsService.importStandardParts(data,isCovered);
	}
}
